# import sys
# print('Program arguments:',sys.argv)
# import report as wr
# description = wr.get_description()
#
# print("today's weather:",description)

# from  report import get_description
# description = get_description()
# print("today's weather:",description)

# descriptionimport sys
# for place in sys.path:
#     print(place)

# periodic_table = {'Hydrogen': 1, 'Helium': 2}
# print(periodic_table)
#
# carbon = periodic_table.setdefault('Carbon', 12)
#
# print(carbon)
#
# helium = periodic_table.setdefault('helium',967)
# print(helium)
# print(periodic_table)

# from collections import defaultdict
# periodic_table = defaultdict(int)
#
# periodic_table['Hydrogen'] = 1
# periodic_table['lead']
#
# print(periodic_table)

# from collections import defaultdict
# def no_idea():
#     return 'Huh?'
#
# bestiary = defaultdict(no_idea)
# bestiary['A'] = 'Abominable Snowman'
# bestiary['B'] = 'Basilisk'
#
# print(bestiary['A'])
# print(bestiary['C'])

# from collections import defaultdict
# food_counter = defaultdict(int)
# for food in ['spam','span','eggs','spam']:
#     food_counter[food] += 1
#
# print(food_counter)
# for food,count in food_counter.items():
#     print(food,count)

# dict_counter = {}
# for food in ['spam','spam','eggs','spam']:
#     if not food in dict_counter :
#         dict_counter[food] = 0
#     dict_counter[food]  += 1
#
# for food,count in dict_counter.items():
#     print(food,count)

# from collections import Counter
# breakfast = ['spam','spam','eggs','spam']
# breakfast_counter = Counter(breakfast)
# print(breakfast_counter)
#
# print(breakfast_counter.most_common())
#
# lunch = ['eggs','eggs','bacon']
# lunch_counter = Counter(lunch)
# print(lunch_counter)
#
# print(breakfast_counter + lunch_counter)
#
# print(breakfast_counter - lunch_counter )

# quotes = {
#     'moe' : 'a wise guy ,huh?',
#     'larry' : 'ow',
#     'curly' : 'nyuk nyuk!'
# }
#
# for stooge in quotes:
#     print(stooge)

# from collections import OrderedDict
# quotes = OrderedDict([
#     ('Moe', 'A wise guy, huh?'),
#     ('Larry', 'Ow!'),
#     ('Curly', 'Nyuk nyuk!'),
# ])
#
# for stooge in quotes:
#     print(stooge)

# def palindrome(word):
#     from collections import deque
#     dq = deque(word)
#     while len(word) > 1 :
#         if dq.popleft() != dq.pop():
#             return False
#     return True
# print(palindrome('a'))
#
# print(palindrome('racecar'))

# def another_palindrome(word):
#     return word == word[::-1]
# print(another_palindrome('radar'))
#
# print(another_palindrome('halibut'))


# import itertools
# for item in itertools.chain([1,2],['a','b']):
#     print(item)


# import itertools
# for item in itertools.cycle([1,2]):
#     print(item)

# import itertools
# for item in itertools.accumulate([1,2,3,4]):
#     print(item)

# def mutiply(a,b):
#     return a*b
#
# for item in itertools.accumulate([1,2,3,4],mutiply):
#     print(item)

# from pprint import pprint
#
# quotes = {'Moe': 'A wise guy, huh?',
# 'Larry': 'Ow!', 'Curly': 'Nyuk nyuk!'}
# pprint(quotes)

# import zoo
# zoo.hours()

# import zoo as menagerie
#
# menagerie.hours()

# from zoo import hours as info
# hours = info()

# from collections import OrderedDict
# fancy = OrderedDict([('a',1),('b',2),('c',3)])


from collections import defaultdict
dict_of_lists = defaultdict(list)
dict_of_lists['a'].append('something of a')
print(dict_of_lists['a'])












